package com.mozai.shopping.model.http;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserReq implements Serializable {

    @NotBlank(message = "用户名 不能为空")
    private String userName;

    @NotBlank(message = "密码 不能为空")
    private  String password;
}
